
package com.cmc.service;

import java.util.List;

import com.cmc.service.Manager;
import com.cmc.model.Category;
import com.cmc.dao.CategoryDao;

public interface CategoryManager extends Manager {
    /**
     * Retrieves all of the categorys
     */
    public List getCategorys(Category category);

    /**
     * Gets category's information based on id.
     * @param id the category's id
     * @return category populated category object
     */
    public Category getCategory(final String id);

    /**
     * Saves a category's information
     * @param category the object to be saved
     */
    public void saveCategory(Category category);

    /**
     * Removes a category from the database by id
     * @param id the category's id
     */
    public void removeCategory(final String id);
}

